<script>
  import loginByWechat from '@/api/login.js'
  export default {
    async onLaunch() {
      //静默登录注册
      await loginByWechat()
      this.$isResolve()
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    }
  }
</script>

<style lang="scss">
  @import "uview-ui/index.scss";
  /*每个页面公共css */
</style>